﻿using System.Collections.Generic;

using SimbaRGVMonitor.Common.Data;

namespace SimbaRGVMonitor.Common.Linq
{
    public static class DictionaryExtension
    {
        public static ReadOnlyDictionary<TKey, TValue> AsReadOnlyDictionary<TKey, TValue>(this IDictionary<TKey, TValue> source)
        {
            return new ReadOnlyDictionary<TKey, TValue>(source);
        }
    }
}
